package com.zhiwang.planet.widget.highlight.position;

import android.graphics.RectF;

import com.zhiwang.planet.widget.highlight.HighLight;

public class BottomRightPosCallBack extends OnBaseCallback {

    private int topMargin = 0;
    private int leftMargin = 0;

    public BottomRightPosCallBack() {
    }

    public BottomRightPosCallBack(int leftMargin, int topMargin) {
        this.leftMargin = leftMargin;
        this.topMargin = topMargin;
    }

    @Override
    public void getPosition(float rightMargin, float bottomMargin, RectF rectF, HighLight.MarginInfo marginInfo) {
        marginInfo.leftMargin = rectF.left + rectF.width() +leftMargin;
        marginInfo.topMargin = rectF.top + rectF.height()+topMargin;
        ;
    }
}
